Skip to content

HDDS-17830. Run populate-cache before build - #12100

Merged
adoroszlai merged 2 commits into
apache:masterfrom
adoroszlai:HDDS-17830-2
Nov 20, 2026
Merged

adoroszlai merged 2 commits into
apache:masterfrom
adoroszlai:HDDS-17830-2

Conversation

@adoroszlai

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Run populate-cache before build to avoid CI failures due to HTTP 429 from Maven Central.

Keep push trigger for master in populate-cache, because the same event is ignored in post-commit.

https://issues.apache.org/jira/browse/HDDS-17830

How was this patch tested?

https://github.com/adoroszlai/ozone/actions/runs/44589679058

@adoroszlai adoroszlai self-assigned this Nov 19, 2026
@adoroszlai adoroszlai added the CI label Nov 19, 2026

@chihsuan chihsuan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch! @adoroszlai LGTM

Comment thread .github/workflows/post-commit.yml Outdated
CI:
needs:
- cache
if: always() # even if cache is skipped or fails

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Should we use !cancelled() here? Or do we want to run it even after the run is cancelled?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. For some reason I thought always() is required to overcome skipped needs. Now I checked docs, any condition should be enough to override implicit if: success() condition.

https://docs.github.com/en/actions/reference/workflows-and-actions/expressions#status-check-functions

@dombizita dombizita left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adoroszlai!

@adoroszlai
adoroszlai merged commit b5fd6eb into apache:master Nov 20, 2026
5 checks passed
@adoroszlai

Copy link
Copy Markdown
Contributor Author

Thanks @chihsuan, @dombizita for the review.

@adoroszlai
adoroszlai deleted the HDDS-17830-2 branch November 20, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants